import request from '@/utils/request'

// 查询订单列表
export function getListPage(params) {
    return request({
        url: '/operate/order/orderList',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
            'pageNum': params.pageNum,
            'pageSize': params.pageSize
        },
        method: 'get',
        params: params
    })
}

// 查询订单详情
export function orderListDetail(params) {
    return request({
        url: '/operate/order/orderListDetail',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        },
        method: 'get',
        params: params
    })
}

// 查询商铺下订单金额
export function shopOrderGroup(params) {
    return request({
        url: '/operate/order/shopOrderGroup',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
            'pageNum': params.pageNum,
            'pageSize': params.pageSize
        },
        method: 'get',
        params: params
    })
}